package com.dj.web.login.controller;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 用户登录VO
 * 
 * @author jasen.hsu.cn@gmail.com 2012-4-17 下午3:52:57
 */
public class LoginForm {

    /** 用户名 */
    @NotNull
    @Size(min = 1, max = Integer.MAX_VALUE)
    private String loginId;

    /** 密码 */
    @NotNull
    @Size(min = 1, max = Integer.MAX_VALUE)
    private String password;

    /** 重定向页面 */
    private String toUrl;

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getToUrl() {
        return toUrl;
    }

    public void setToUrl(String toUrl) {
        this.toUrl = toUrl;
    }

}
